#include "headfiles.h"

using namespace std;

int main(int argc, char **argv) {
    if (argc != 2) {
        cout << "Usage: " << argv[0] << " n" << endl;
        return 0;
    }

    int n = atoi(argv[1]);

    int total_twos;
    total_twos = calcTotalTwos(n);

    cout << "There are " << total_twos << " 2s from  1 to " << n << "." << endl;
    
    total_twos = calcTotalTwos1(n);
    cout << "There are " << total_twos << " 2s from  1 to " << n << "." << endl;

    return 0;
}

